﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using model;
using Bll;

public partial class Searchr : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        BindGridView();
    }
    void BindGridView()
    {
        string sword = ddlSearch.Text;
        string kword = txtResumeSearch.Text;
        if (sword == "专业")
        {
            sword = "major";
        }
        if (sword == "性别")
        {
            sword = "ssex";
        }
        if (sword == "籍贯")
        {
            sword = "huji";
        }
        ResumeSBll bll = new ResumeSBll();
        List<ResumeS> datas = bll.GetList(sword,kword);
        GridView1.DataSource = datas;
        GridView1.DataBind();
    }
    protected void btnJobSearch_Click(object sender, EventArgs e)
    {
        
        BindGridView();
        
    }

    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        BindGridView();
    }
}